package com.jic.member.mapper;

import com.jic.member.entity.MememberIntegralAction;
import com.jic.member.response.MememberIntegralRuleResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 评价-分享-点赞-晒单-收藏赠送表
 *
 * @author :
 * @version : v1.0.0
 * @email :
 * @since : 2020-04-02 03:06:16
 */
@Mapper
public interface MememberIntegralActionMapper {

    long insert(MememberIntegralAction mememberIntegralAction);

    long delete(Long id);

    long update(MememberIntegralAction mememberIntegralAction);

    MememberIntegralAction queryByPrimaryKey(Long id);

    List<MememberIntegralAction> query(MememberIntegralAction mememberIntegralAction);

    List<MememberIntegralAction> queryPage(@Param("startIndex") int startIndex , @Param("limit") int limit , @Param("mememberIntegralAction") MememberIntegralAction mememberIntegralAction);

    long queryPageCount(MememberIntegralAction mememberIntegralAction);

    /**
     * 根据规则查询
     *
     * @param ruleId
     * @return
     */
    MememberIntegralRuleResponse queryMememberIntegralActionByRuleId(@Param("ruleId") Long ruleId);

    /**
     * 根据规则查询
     *
     * @param ruleId
     * @return
     */
    MememberIntegralAction queryByRuleId(@Param("ruleId") Long ruleId);
}
